package com.cetcs.kmga.dataManager.util;

import com.cetcs.kmga.common.Data;
import com.cetcs.kmga.dataManager.entity.device.vi.DeviceInfoVi;

public class Vi2DataMap {
    /**
     * DeviceInfo2DeviceInfoVo
     * @param deviceInfoVi
     * @return
     */
    public static Data DeviceInfoVi2DataMap(DeviceInfoVi deviceInfoVi){
        Data dataMap = new Data();
        dataMap.put("name",deviceInfoVi.getDevice_name());
        dataMap.put("ip",deviceInfoVi.getDevice_ip());
        dataMap.put("mac",deviceInfoVi.getDevice_mac());
        dataMap.put("type",deviceInfoVi.getDevice_type());
        dataMap.put("location",deviceInfoVi.getDevice_location());
        dataMap.put("adminName",deviceInfoVi.getDevice_adminName());
        dataMap.put("adminPhone",deviceInfoVi.getDevice_adminPhone());
        dataMap.put("usr",deviceInfoVi.getDevice_userName());
        //设备厂商
        dataMap.put("manuf",deviceInfoVi.getDevice_manuf());
        //设备版本
        dataMap.put("vers",deviceInfoVi.getDevice_vers());
        //密码
        dataMap.put("password",deviceInfoVi.getDevice_userPassword());
        return  dataMap;
    }
}
